package com.zhny.aiot.head.observe.control.plugin.model;

import com.zhny.aiot.plugin.ActionValue;
import com.zhny.aiot.plugin.PropertyValue;
import com.zhny.aiot.plugin.model.*;
import lombok.Data;

@Data
public class HeadControlStoreEntry extends StoreEntity {
    @PropertyValue(alias = "水泵A状态",description = "水泵A状态",unit = "",icon=IconConstract.Other,variableType=VariableType.WaterPump,actions={
            @ActionValue(name=Operate.Open,commandCode="openA",eventType=EventType.Click),
            @ActionValue(name=Operate.Close,commandCode="closeA",eventType=EventType.Click),
            @ActionValue(name=Operate.Query,commandCode="queryStatus",eventType=EventType.Click)
    })
    private Boolean waterPumpA;

    @PropertyValue(alias = "水泵B状态",description = "水泵B状态",unit = "",icon=IconConstract.Other,variableType=VariableType.WaterPump,actions={
            @ActionValue(name=Operate.Open,commandCode="openB",eventType=EventType.Click),
            @ActionValue(name=Operate.Close,commandCode="closeB",eventType=EventType.Click),
            @ActionValue(name=Operate.Query,commandCode="queryStatus",eventType=EventType.Click)
    })
    private Boolean waterPumpB;
}
